package proxy.myjdkproxy;


/**
 * @auther: Steven
 * @created： 2018/2/7 22:47
 * Description：甲方
 */
public class Client {
    public static void main(String[] args) {
//        // 获取代理
//        IBoss boss=(IBoss) new Product().getInstance(new Coder());
//        boss.dealDemands();
        IBoss boss=(IBoss)new Product().getInstance();
        if (boss == null) {
            System.out.println("内心OS:都不加班，还得招人");
            return;
        }else {
            boss.dealDemands();
            boss.dealDemands(" 增加支付模块 ");
        }
    }
}
